@hometown("山西")
@school
class Student {
    constructor(name) {
        this.name = name;
    }
    @studyke("HTML")
    study() {
        console.log(this.name + " is studying" + this.ke + "!")
    }
}

function school(target, prop, descriptor) {
    console.log(target);
    console.log(prop);
    console.log(descriptor);
    target.schoolName = "师徒课堂";
    return descriptor;
}

function hometown(diqu) {
    return function (target) {
        target.home = diqu;
    }
}

function studyke(kemu) {
    return function (target) {
        target.ke = kemu;
    }
}

const su = new Student('willerfu');
su.study();